/* ==========================================================================
   Global definitions
   ========================================================================== */
    
html, body{
	height: 100%;
}

body{
	font-size: 16px;
	font-size: 100%;
	font-size: 1em;
	
	line-height: 1.125em;
	
	background-image: url('../img/bg.png');	
	overflow: hidden;	
}

/*** show/hide elements ***/

.overlayModal,
.hide,
.hide_for_all,
.show_for_smartphone, 
.show_for_smartphone_landscape, 
.show_for_smartphone_portrait, 
.show_for_tablet,
.show_for_tablet_landscape,
.show_for_tablet_portrait,
.show_for_desktop,
.show_for_huge_desktop,
[data-role=header],
[data-role=page],
[data-role=content],
[data-role=sidebar],
[data-role=nav],
[data-role=footer],
[data-role=bgslide]
{
	display: none;
}

/* ========================================================================== 
   Layers
   ========================================================================== */

.overlayLayer{
	position: absolute;
	top: 0;
	left: 0;
	
	width: 300%;
	height: 300%;
	
	overflow: hidden;	
	
	background-color: rgba(0,0,0,0.5);
}

/* ========================================================================== 
   BgSlide
   ========================================================================== */

[data-role="bgslide"]{
	z-index: -1;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;	
}

[data-role="bgslide"] ul li img{
	position: absolute;
	top: 0;
	left: 0;
	margin: 0 auto;
	
	display: none;
}	

/* ========================================================================== 
   CONTENT
   ========================================================================== */
   
/** MARGINS **/

.with_header{
	padding-top: 60px;
}

.with_footer{
	padding-bottom: 25px;
}

.with_nav{
	padding-bottom: 80px;
}

.with_footer.with_nav{
	padding-bottom: 105px;
}

.with_sidebar{
	margin-right: 250px;
}

[data-role="sidebar"].with_header{
	top: 60px;
	padding-top: 0;
}

[data-role="sidebar"].with_footer{
	bottom: 25px;
	padding-bottom: 0;
}
[data-role="sidebar"].with_nav{
	bottom: 80px;
	padding-bottom: 0;
}
[data-role="sidebar"].with_footer.with_nav{
	bottom: 105px;
	padding-bottom: 0;
}

/** QUICK MARGINS **/

.ml{
	padding: 6px;
}
.mm{
	padding: 12px;
}
.mh{
	padding: 18px;
}

.mlsr{
	padding: 6px 8px 6px 6px;
}
.mmsr{
	padding: 12px 14px 12px 12px;
}
.mhsr{
	padding: 18px 20px 18px 18px;
}
   
/** HEADER **/   

[data-role="header"] {
	position: fixed;
	top: 0;	
	width: 100%;
	
	height: 60px;
	
	border: 1px red dotted; 	
}

/** FOOTER **/ 
  
[data-role="footer"] {
	position: fixed;
	bottom: 0;	
	width: 100%;
	
	height: 25px;
	line-height: 25px;	
	
	border: 1px blue dotted;
}

/** NAV **/

[data-role="nav"]{
	position: fixed;
	bottom: 0;
	height: 80px;
	width: 100%;
}
[data-role="nav"].with_footer{
	bottom: 25px;
	padding: 0;
}

[data-role="nav"] ul, [data-role="nav"] ul li{
	display: block;
}

[data-role="nav"] ul li{
	float: left;
}

[data-role="nav"] .nav-prev,
[data-role="nav"] .nav-next{
	position: absolute;
	width: 38px;		
	background-repeat: no-repeat;
	opacity: 0.6;
	cursor: pointer;
	
	display: none;
}

[data-role="nav"]:hover .nav-prev,
[data-role="nav"]:hover .nav-next{
	opacity: 0.9;
}

[data-role="nav"] .nav-prev{	
	top: 0; left: -1px;
	background-image: url(../img/icons/slider-prev2.png);
	background-position: left center;	
}

[data-role="nav"] .nav-next{
	top: 0; right: -1px;
	background-image: url(../img/icons/slider-next2.png);
	background-position: right center;
}

[data-role="nav"] *{
	height:80px;
	overflow: display;
	
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	-o-box-sizing:border-box;
	box-sizing:border-box;		
}

/** PAGE CONTAINER **/

[data-role="page"]{
	position: relative;
	height: 100%;
	
	border: 1px green solid;
}

[data-role="page"] [data-role="section"]{
	height: 100%;
	border: 1px solid yellow;
}

/** SIDEBAR **/

[data-role="sidebar"]{
	position: fixed;
	right: 0;
	top: 0;	
	bottom: 0;
	width: 250px;
	
	border: 1px solid blue;
}

[data-role="sidebar"] [data-role="section"]{
	height: 100%;
}

/* ========================================================================== 
   1- Smartphones (portrait and landscape)
   ========================================================================== */
     
@media only screen
and (max-width : 767px) {	
	
	.show_for_smartphone{
		display: block!important;
	}
}

/* ==========================================================================
   2- Smartphones (landscape)
   ========================================================================== */
      
@media only screen 
and (min-width : 321px)
and (max-width : 767px) {
	
	.show_for_smartphone_landscape{
		display: block!important;
	}
	
}

/* ==========================================================================
   3- Smartphones (portrait)
   ========================================================================== */
      
@media only screen 
and (max-width : 320px) {
	
	.show_for_smartphone_portrait{
		display: block!important;
	}
	
}

/* ==========================================================================
   4- iPads (portrait and landscape)
   ========================================================================== */
      
@media only screen 
and (min-width : 768px) 
and (max-width : 1024px) {

	.show_for_tablet{
		display: block!important;
	}
	
}

/* ==========================================================================
   4- iPads (landscape)
   ========================================================================== */
   
@media only screen 
and (min-width : 768px) 
and (max-width : 1024px) 
and (orientation : landscape) {
	
	.show_for_tablet_landscape{
		display: block!important;
	}
	
}

/* ==========================================================================
   4- iPads (portrait)
   ========================================================================== */
   
@media only screen 
and (min-width : 768px) 
and (max-width : 1024px) 
and (orientation : portrait) {

	.show_for_tablet_portrait{
		display: block!important;
	}	
	
}

/* ==========================================================================
   5- Desktops and laptops
   ========================================================================== */
   
@media only screen 
and (min-width : 1025px) {

	.show_for_desktop{
		display: block!important;
	}
	
}

/* ==========================================================================
   6- Large screens
   ========================================================================== */
   
@media only screen and (min-width : 1824px) {
	
	.show_for_huge_desktop{
		display: block!important;
	}
	
}

/* ==========================================================================
   7- iPhone 4 (Special one)
   ========================================================================== */
   
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
	/* Styles */
}

/* ==========================================================================
   ALL
   ========================================================================== */
   
.show,   
.show_for_all{
	display: block!important;
}   
   
   
/* ==========================================================================
   SCROLL
   ========================================================================== */
      
.nicescroll-rails{
	background-color: rgba(0,0,0,0.1);
}
